﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Slja.Utility
{
    public enum SaleType
    {
         /// <summary>
        /// 代理
        /// </summary>
        [Description("代理")]
        AgentCorpSale=1,
        /// <summary>
        /// 直营
        /// </summary>
        [Description("直营")]
        DirectSale=0
       
    }
    public enum WorkerRole
    {
        /// <summary>
        /// 项目管理员
        /// </summary>
       [Description("项目管理")]
        OrderManager=1,
        /// <summary>
        /// 设计师
        /// </summary>
        [Description("设计")]
        OrderDesigner = 2,
        /// <summary>
        /// 项目合约员
        /// </summary>
        [Description("项目合约")]
        OrderContracter = 3,
        /// <summary>
        /// 工程经理
        /// </summary>
        [Description("工程经理")]
        FixManager=4,
        /// <summary>
        /// 监理
        /// </summary>
        [Description("施工监理")]
        FixMonitor=5,
        /// <summary>
        /// 工长
        /// </summary>
        [Description("施工工长")]
        FixForeman=6,
        /// <summary>
        /// 工程助理
        /// </summary>
        [Description("工程助理")]
        FixAssistant = 7
    }
    [Flags]
    public enum Btn
    {
        /// <summary>
        /// 无
        /// </summary>
        [Description("")]
        None,
        /// <summary>
        /// 提交
        /// </summary>
        [CusDescription("提交订单")]
        [Description("提交")]
        Submit=1,
        /// <summary>
        /// 保存
        /// </summary>
        [Description("保存")]
        Save=2,
        /// <summary>
        /// 回退
        /// </summary>
        [Description("回退")]
        Back=4,
        /// <summary>
        /// 委托
        /// </summary>
        [Description("委托")]
        Delegate=8 ,
        /// <summary>
        /// 发送邮件
        /// </summary>
        [CusDescription("发送邮件")]
        [Description("发送")]
        SendMail=16,
        /// <summary>
        /// 打印
        /// </summary>
        [Description("打印")]
        Print=32
        
    }
    /// <summary>
    /// 上传文件功能分类
    /// </summary>
    public enum FileClass
    {
        None=0,
        /// <summary>
        /// 平面图
        /// </summary>
         [Description("平面图")]
        DrawingPlane=1,
        /// <summary>
        /// 模型图
        /// </summary>
        [Description("模型图")]
        DrawingModel=2,
        /// <summary>
        /// 效果图
        /// </summary>
        [Description("效果图")]
        DrawingScene=3,
        /// <summary>
        /// 施工图
        /// </summary>
        [Description("施工图")]
        DrawingContruction=4,
        /// <summary>
        /// 物料清单
        /// </summary>
        [Description("物料清单")]
        FileMaterial=5,
        /// <summary>
        /// 报价单
        /// </summary>
         [Description("报价单")]
        FileQuotation=6

    }
    public enum MsgState
    {
        /// <summary>
        /// 错误
        /// </summary>
        error = 1,
        /// <summary>
        /// 成功
        /// </summary>
        successful = 2,
        /// <summary>
        /// 警告
        /// </summary>
        warning = 3

    }
    /// <summary>
    /// 订单的某些字段
    /// </summary>
    [Flags]
    public enum OrderField
    {
        /// <summary>
        /// 客户备注
        /// </summary>
        ClientMemo=1,
        /// <summary>
        /// 项目管理备注
        /// </summary>
        ManageMemo=2,
        /// <summary>
        /// 设计备注
        /// </summary>
        DesignMemo=4,
        /// <summary>
        /// 报价备注
        /// </summary>
        PriceMemo=8
    }
}
